package javabasics.designpattern.aop.proxy;

/**
 * @Author suxiaoxiao
 * @Date 2019/5/30 23:38
 * @Version 1.0
 */
public class DBQuery implements IDBQuery {

    public DBQuery() {
        try {
            // 可能包含数据库连接等耗时操作
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public String request() {
        return "request string";
    }
}
